#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

int main(){
	int i;
	for(i=0;i<10;i++){
		printf("%s\n",tmpnam(NULL));
	//	printf("%s\n",mktemp("abcdxxxxxx"));
	}
	FILE* tf1=mkstemp("abcxxxxxx");
	FILE* tf=tmpfile();
	if(!tf){
		printf("open tmp file error\n");
	}
	printf("user:%s id:%d\n",getlogin(),getuid());
	exit(0);
}
